import KeepAliveProvider from '../components/KeepAliveProvider'
import KeepAlive from '../components/KeepAlive'
import Counter from '../components/Counter'
import { useState } from 'react';

const DocsPage = () => {
  const [show, setShow] = useState(true)
  return (
    <>
      <p onClick={() => setShow(!show)}>This is umi docs.</p>
      {show && <KeepAlive Content={<Counter />} />}
      <Counter />
    </>
  );
};

export default DocsPage;
